package com.base.web.auth.service;

import com.base.web.core.basic.service.BasicService;
import com.base.web.model.master.auth.MenuTree;
import com.base.web.model.master.auth.ResourceBean;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;
import java.util.TreeSet;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @Author: rentie
 * @Date: 2018/7/9 15:22
 */
public interface ResourceService extends BasicService<ResourceBean> {

    /**
     * 用户菜单列表
     * @param id 用户id
     * @return
     */
    TreeSet<MenuTree> queryUserMenuListById(String id);

    /**
     * 所有菜单
     * @param parentId 父级id
     * @return
     */
    List<MenuTree> queryMenuList(String parentId);

    PageInfo<ResourceBean> queryManageList(Map<String, String> map);

}